<template>
    <div>
        <CardInfo :infodata="infodata"/>
    </div>
</template>

<script setup lang="ts">
const list = reactive({
  infodata:""
});
let { infodata} = toRefs(list);
const getdata = async () => {
 await axios.get("/datajson/index3.json").then((res) => {
    let {
      data: { infodata },
    } = res;
    // console.log(res);
    
    list.infodata = infodata;
  });
};
onMounted(() => {
  getdata()
})
</script>

<style scoped>

</style>